lib=libmymethod.so 

$(lib):myprint.o mylog.o
	gcc -shared -o $@ $^

myprint.o:myprint.c
	gcc -fPIC -c $^
mylog.o:mylog.c
	gcc -fPIC -c $^

.PHONY:clean
clean:
	rm -rf *.so *.o lib 

.PHONY:output
output:
	mkdir -p lib/include
	mkdir -p lib/lib 
	cp *.h lib/include
	cp *.so lib/lib
